import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import classinfo from './views/classinfo/ClassInfo.vue'
import classmanage from './views/classinfo/ClassManage.vue'
import studentmanage from './views/studentmanage/StudentManage.vue'
import exammanagement from './views/exam/ExamManagement.vue'
import studentexam from './views/student/ExamResult.vue'
import examresult from './views/exam/examresult.vue'
import studentList from './views/studentmanage/studentList.vue'
import teacherList from './views/teacher/TeacherList.vue'
import loginfo from './views/loginfo/LogInfo.vue'
import permission from './views/permissionmanage/permission'
import role from './views/rolemanage/role'
import subject from './views/subject/SubjectInfo'
import teacherType from './views/teachertype/teacherType.vue'
import studentRepeat from './views/studentmanage/StudentRepeat.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '答辩管理',
        hidden: false,
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/exammanagement', component: exammanagement, name: '答辩管理' },
            { path: '/examresult', component: examresult, name: '成绩管理', hidden: true },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '成绩查询',
        hidden: false,
        iconCls: 'el-icon-message',//图标样式class
        leaf: true,//只有一个节点
        children: [
            { path: '/studentexam', component: studentexam, name: '成绩查询' }
        ]
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '老师管理',
        hidden: false,
        leaf: true,
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/teacherList', component: teacherList, name: '老师管理', hidden: true },
            { path: '/teacherType', component: teacherType, name: '老师类型管理', hidden: true },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '老师类型管理',
        hidden: false,
        leaf: true,
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/teacherType', component: teacherType, name: '老师类型管理', hidden: true },
        ]
    },
    //{ path: '/main', component: Main },teacherList
    {
        path: '/',
        component: Home,
        name: '学生管理',
        hidden: false,
        //leaf: true,
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/studentList', component: studentList, name: '学生管理' },
            { path: '/studentRepeat', component: studentRepeat, name: '留级学生管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '班级管理',
        hidden: false,
        iconCls: 'fa fa-id-card-o',
        leaf: true,
        children: [
            { path: '/classinfo', component: classinfo, name: '班级管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '学科管理',
        hidden: false,
        iconCls: 'fa fa-id-card-o',
        leaf: true,
        children: [
            { path: '/subject', component: subject, name: '学科管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '日志管理',
        hidden: false,
        iconCls: 'fa fa-address-card',
        leaf: true,//只有一个节点
        children: [
            { path: '/loginfo', component: loginfo, name: '日志管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        hidden: false,
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/role', component: role, name: '角色管理'},
            { path: '/permission', component: permission, name: '权限管理'},
        ]
    },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;